// 导入二次封装axios
import koi from "@/utils/axios.ts";

// 统一管理接口
enum API {
  LIST_COMMENT = "/blog/blogComment/list",
  REPLY_COMMENT = "/blog/blogComment/reply"
}

// 评论查询
export const listComment = (articleId: any) => {
  return koi.get(API.LIST_COMMENT + "/" + articleId);
};

// 回复评论
export const replyComment = (data: any) => {
  return koi.post(API.REPLY_COMMENT, data);
};